import { Link } from 'react-router-dom'
import { routesData } from '../../routes'
import './index.css'

export default function Index() {
  return (
    <aside>
      {routesData.map(({ path, title }) => (
        <Link key={path} to={path}>{title}</Link>
      ))}
    </aside>
  )
}
